using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace Close.io.Client
{
	public class CloseIoApiResult
	{

		private JObject contentObject;
		public HttpStatusCode StatusCode { get; set; }

		public string Content { get; set; }


		public JObject ContentObject
		{
			get
			{
				if (contentObject == null) contentObject = JsonConvert.DeserializeObject<JObject>(Content);
				return contentObject;
			}
		}

		public string ReasonPhrase { get; set; }
	}
}